package gimys;

import org.newdawn.slick.Image;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.SpriteSheet;
import org.newdawn.slick.geom.Rectangle;


public class Door extends SolidObject {

	public Door(Point pLocation) throws SlickException {
		super();
		this.type = Type.DOOR;
		this.sprite = new SpriteSheet("data/Door_open_close.png", 256, 128);
		this.collisionShape = new Rectangle(pLocation.x, pLocation.y, 100, 90);
		this.deltaXSprite = -84;
		this.deltaYSprite = -21;
		this.speed = 0f;
	}
	
	public Image getImage() {
		return this.sprite.getSubImage(1, 0);
	}

}
